import styled from "styled-components";
import logopic from "../../img/logo.png";
export const HeaderWrapper = styled.div`
  position: relative;
  height: 56px;
  border-bottom: 1px solid #f0f0f0;
  width: 960px;
  margin: 0 auto;
`;
export const Logo = styled.div`
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  width: 100px;
  height: 56px;
  background: url(${logopic});
  background-size: cover;
`;
export const Var = styled.div`
  margin: 0 auto;
  width: 75%;
  height: 100%;
  padding-right: 70px;
  box-sizing: border-box;
`;
export const NavItem = styled.div`
  line-height: 56px;
  padding: 0 15px;
  font-size: 16px;
  color: #333;
  &.left {
    float: left;
  }
  &.right {
    float: right;
    color: #969696;
  }
  &.active {
    color: #ea6f5a;
  }
`;
export const SeaverWai = styled.div`
  float: left;
  position: relative;
  .slide-enter {
    transition: all 0.3s ease-out;
  }
  .slide-enter-active {
    width: 240px;
  }
  .slide-exit {
    transition: all 0.3s ease-out;
  }
  .slide-exit-active {
    width: 160px;
  }
  .iconfont {
    position: absolute;
    margin: 9px 0;
    right: 23px;
    bottom: 5px;
    width: 30px;
    line-height: 30px;
    border-radius: 15px;
    text-align: center;
    &.focused {
      background-color: #969696;
      color: #ffffff;
    }
  }
`;
export const Seaver = styled.input.attrs({
  placeholder: "搜索"
})`
  width: 160px;
  height: 38px;
  margin: 9px 20px;
  padding: 0 35px 0 20px;
  border: none;
  outline: none;
  border-radius: 19px;
  box-sizing: border-box;
  background: #eee;
  font-size: 14px;
  color: #666;
  &::placeholder {
    color: #999;
  }
  &.focused {
    width: 240px;
  }
`;
export const InputBox = styled.div`
  position: absolute;
  top: 56px;
  left: 20px;
  width: 230px;
  padding: 10px 20px;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.2);
  border-radius: 3px;
  z-index: 999;
  background: white;
`;
export const InputBoxittle = styled.div`
  font-size: 14px;
  color: #969696;
  margin-top: 10px;
  margin-bottom: 10px;
  line-height: 20px;
`;
export const InputBoxSwitch = styled.span`
  float: right;
  margin-right: 5px;
`;
export const InputBoxItem = styled.a`
  display: block;
  float: left;
  font-size: 12px;
  border-radius: 3px;
  color: #969696;
  border: 1px solid #ddd;
  margin-right: 10px;
  margin-bottom: 10px;
  padding: 2px 6px;
`;

export const Addition = styled.div`
  position: absolute;
  right: 0;
  top: 0;
  height: 56px;
`;
export const Button = styled.button`
  float: right;
  margin: 9px 5px 0 15px;
  height: 38px;
  background-color: transparent;
  color: #ea6f5a;
  line-height: 24px;
  width: 80px;
  border: 1px solid rgba(236, 97, 73, 0.7);
  border-radius: 20px;
  font-size: 15px;
  &.writing {
    color: #fff;
    background: #ec6149;
  }
`;
